<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

  我是一个页面

  <!-- script有一个天然的特性：不会产生跨域 -->
  <script src="https://cdn.bootcdn.net/ajax/libs/axios/1.3.6/axios.js"></script>
  <script>
    axios('http://127.0.0.1:555/api/city?pname=123&cname=456').then(res => {
      console.log(res, 999);
    })
  </script>
</body>

</html>